Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine dtype logic for Power node #326

Closed
wants to merge 1 commit into from

Conversation

angus-g
Copy link
Contributor

@angus-g angus-g commented Nov 7, 2024

We know how to optimise 0 ** x and x ** 0 to a Zero or Constant(1) node, but we can't assume that x is an instance of Constant with a defined dtype.

We know `0 ** x` and `x ** 0`, but we can't assume that `x` is an instance of `Constant` with a defined dtype.
@ksagiyam
Copy link
Contributor

Unfortunately, we need a more robust fix. Please see if #327 fixes your issue.

@angus-g angus-g closed this Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants